
#define	PBAP_NAME_SIZE			20
#define	PBAP_NAME_BUFF_SIZE		PBAP_NAME_SIZE * 2
#define	PBAP_NUMBER_BUFF_SIZE	20

#define	PBAP_NUMBER_CALL_HISTORY	20
#define	PBAP_NUMBER		1000

typedef struct
{
	unsigned char ucName[PBAP_NAME_BUFF_SIZE];
	unsigned char ucHome[PBAP_NUMBER_BUFF_SIZE];
	unsigned char ucWork[PBAP_NUMBER_BUFF_SIZE];
	unsigned char ucCell[PBAP_NUMBER_BUFF_SIZE];
	unsigned char ucOther[PBAP_NUMBER_BUFF_SIZE];
	unsigned char ucCharSet;
	unsigned short usNumber;
}PBAP_LIST;

typedef struct
{
	unsigned char ucName[PBAP_NAME_BUFF_SIZE];
	unsigned char ucPhone[PBAP_NUMBER_BUFF_SIZE];
}PBAP_LIST_TEST;

#define	PBAP_CONTENTS_PHONEBOOK			0
#define	PBAP_CONTENTS_CALLHISTORY		1

#define	PBAP_CHAR_UTF8		1
#define	PBAP_CHAR_NONE		0

unsigned char PBAP_MakeBlockData(unsigned char ucBuf);
unsigned char PBAP_Parsing(void);

